package com.link.base.base.user.model;

/**
 * 认证服务器返回的token信息,因为是需要反序列化认证服务器返回的
 * 对象，所以字段需要和认证服务器那边返回的一致。
 *
 * @author 黄龙建
 * @date 2020/1/8 3:45 下午
 */
public class JWT {
    /**
     * accessToken
     */
    private String access_token;

    /**
     * token的类型，目前没用
     */
    private String token_type;

    /**
     * refresh_token 目前没用
     */
    private String refresh_token;

    /**
     * 有效时间，秒
     */
    private int expires_in;

    /**
     * 所属范围
     */
    private String scope;

    /**
     * 目前没有用上
     */
    private String jti;

    public JWT() {
    }

    public String getAccess_token() {
        return this.access_token;
    }

    public void setAccess_token(String access_token) {
        this.access_token = access_token;
    }

    public String getToken_type() {
        return this.token_type;
    }

    public void setToken_type(String token_type) {
        this.token_type = token_type;
    }

    public String getRefresh_token() {
        return this.refresh_token;
    }

    public void setRefresh_token(String refresh_token) {
        this.refresh_token = refresh_token;
    }

    public int getExpires_in() {
        return this.expires_in;
    }

    public void setExpires_in(int expires_in) {
        this.expires_in = expires_in;
    }

    public String getScope() {
        return this.scope;
    }

    public void setScope(String scope) {
        this.scope = scope;
    }

    public String getJti() {
        return this.jti;
    }

    public void setJti(String jti) {
        this.jti = jti;
    }

    @Override
    public String toString() {
        return "JWT{access_token='" + this.access_token + '\''
                + ", token_type='" + this.token_type + '\''
                + ", refresh_token='" + this.refresh_token + '\''
                + ", expires_in=" + this.expires_in + ", scope='" + this.scope + '\'' + ", jti='" + this.jti + '\'' + '}';
    }
}
